v e r s i o n = 1 
 l e f t t o r i g h t = t r u e 
 a u t h o r = e x t r a c t e d   f r o m   T i p p t r a i n e r   ( A n d r e a s   K a l b i t z ) , a d a p t e d   b y   S v e n   G o h l k e   f o r   K T o u c h 
 n u m e r i c = f a l s e 
 
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
 i n f o . c p p   -   d e s c r i p t i o n   
 b e g i n   S u n   J a n   3 0   M E T   2 0 0 0   
 c o p y r i g h t   ( C )   1 9 9 9   b y   D a n i e l   R e i t h   
 e m a i l   D a n R @ g m x . d e   
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /   
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
 *   *   
 *   T h i s   p r o g r a m   i s   f r e e   s o f t w a r e ;   y o u   c a n   r e d i s t r i b u t e   i t   a n d / o r   m o d i f y   *   
 *   i t   u n d e r   t h e   t e r m s   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e   a s   p u b l i s h e d   b y   *   
 *   t h e   F r e e   S o f t w a r e   F o u n d a t i o n ;   e i t h e r   v e r s i o n   2   o f   t h e   L i c e n s e ,   o r   *   
 *   ( a t   y o u r   o p t i o n )   a n y   l a t e r   v e r s i o n .   *   
 *   *   
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /   
 # i n c l u d e   " i n f o . h "   
 # i n c l u d e   " w x / i m a g e . h "   
 # i n c l u d e   < c o n f i g . h >   
 e n u m   
 {   
 C   =   2 1 1 ,   
 O K   =   2 1 2   
 } ;   
 B E G I N _ E V E N T _ T A B L E ( I n f o _ D i a l o g ,   w x D i a l o g )   
 E V T _ B U T T O N ( O K ,   
 E N D _ E V E N T _ T A B L E ( )   
 / / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
 / / *   K o n s t r u k t o r   
 / / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
 p a r e n t ,   w x W i n d o w I D   i d ,   c o n s t   w x S t r i n g &   t i t l e ,   c o n s t   w x P o i n t &   p o s   =   w x D e f a u l t P o s i t i o n ,   
 c o n s t   w x S i z e &   s i z e   = w x D e f a u l t S i z e ,   l o n g   s t y l e   =   w x D E F A U L T _ D I A L O G _ S T Y L E ,   c o n s t   w x S t r i n g &   n a m e   =   " d i a l o g B o x " )   w x D i a l o g ( p a r e n t ,   i d ,   t i t l e ,   p o s ,   s i z e ,   s t y l e ,   n a m e )   
 {   
 S e t A u t o L a y o u t ( T R U E ) ;   
 # i f d e f   _ _ W X M S W _ _   
 w x P N G F i l e H a n d l e r ) ;   
 # e n d i f   
 # i f d e f   _ _ W X G T K _ _   
 w x P N G H a n d l e r ) ;   
 # e n d i f   
 w x S t r i n g   f ;   
 f   < <   L _ D I R   < <   " l o g o . p n g " ;   
 l o g o   =   n e w   w x B i t m a p ( f   ,   w x B I T M A P _ T Y P E _ P N G ) ;   
 c a n v a s   =   n e w   M y C a n v a s ( t h i s ,   l o g o ,   w x D e f a u l t P o s i t i o n ,   w x D e f a u l t S i z e ) ;   
 w x L a y o u t C o n s t r a i n t s   * c 1   =   n e w   w x L a y o u t C o n s t r a i n t s ;   
 c 1 - > t o p . S a m e A s ( t h i s ,   w x T o p ,   5 ) ;   
 c 1 - > l e f t . S a m e A s ( t h i s ,   w x L e f t ,   5 ) ;   
 c 1 - > w i d t h . P e r c e n t O f ( t h i s ,   w x W i d t h ,   4 8 ) ;   
 c 1 - > h e i g h t . P e r c e n t O f ( t h i s ,   w x H e i g h t ,   8 0 ) ;   
 c a n v a s - > S e t C o n s t r a i n t s ( c 1 ) ;   
 i n f o _ t e x t   =   n e w   w x S t a t i c T e x t ( t h i s ,   - 1 ,   " " ,   w x D e f a u l t P o s i t i o n ,   w x D e f a u l t S i z e ) ;   
 w x L a y o u t C o n s t r a i n t s   * c 3   =   n e w   w x L a y o u t C o n s t r a i n t s ;   
 c 3 - > t o p . S a m e A s ( t h i s ,   w x T o p ,   5 ) ;   
 c 3 - > l e f t . S a m e A s ( c a n v a s ,   w x R i g h t ,   1 5 ) ;   
 c 3 - > w i d t h . P e r c e n t O f ( t h i s ,   w x W i d t h ,   4 7 ) ;   
 c 3 - > h e i g h t . P e r c e n t O f ( t h i s ,   w x H e i g h t ,   8 0 ) ;   
 i n f o _ t e x t - > S e t C o n s t r a i n t s ( c 3 ) ;   
 w x S t r i n g   m s g ;   
 m s g   < <   _ ( " P i n g o S   T i p p t r a i n e r \ n " )   
 < <   _ ( " - - - - - - - - - - - - - - - - - - \ n " )   
 < <   < <   V E R S I O N   
 < <   
 < <   _ ( " V e r  f f e n t l i c h t   u n t e r   d e r   G P L   2 . 0 \ n " )   
 < <   
 < <   " A n d r e a s   K a l b i t z   \ n \ t ( f e l i x @ m u s i k - w o r k s h o p . d e ) \ n "   
 < <   " M a t t h i a s   K l e i n e   \ n \ t ( M a t t h i a s . K l e i n e @ s e l f l i n u x . d e ) \ n "   
 < <   " D a n i e l   R e i t h   ( D a n R @ g m x . d e ) \ n "   
 < <   _ ( " \ n F e e d b a c k   b i t t e   \ n \ t t i p p t r a i n e r @ r e i t h . 8 m . c o m " ) ;   
 i n f o _ t e x t - > S e t L a b e l ( m s g ) ;   
 o k   =   n e w   w x B u t t o n ( t h i s ,   O K ,   _ ( " S c h l i e  e n " ) ) ;   
 w x L a y o u t C o n s t r a i n t s   * c 2   =   n e w   w x L a y o u t C o n s t r a i n t s ;   
 c 2 - > c e n t r e X . S a m e A s ( t h i s ,   w x C e n t r e X ) ;   
 c 2 - > t o p . S a m e A s ( c a n v a s ,   w x B o t t o m ,   1 0 ) ;   
 c 2 - > w i d t h . P e r c e n t O f ( t h i s ,   w x W i d t h ,   3 0 ) ;   
 c 2 - > h e i g h t . P e r c e n t O f ( t h i s ,   w x H e i g h t ,   9 ) ;   
 o k - > S e t C o n s t r a i n t s ( c 2 ) ;   
 }   
 / / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
 / / *   D e s t r u k t o r   
 / / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
 
 {   
 }   
 / / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
 / / *   F e n s t e r   s c h l i e  e n   
 / / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   
 v o i d   e v e n t )   
 {   
 E n d M o d a l ( G e t R e t u r n C o d e ( ) ) ;   
 }   
 B E G I N _ E V E N T _ T A B L E ( M y C a n v a s ,   w x S c r o l l e d W i n d o w )   
 
 E N D _ E V E N T _ T A B L E ( )   
 * p a r e n t ,   w x B i t m a p   * b ,   c o n s t   w x P o i n t &   p o s ,   c o n s t   w x S i z e &   
 w x S c r o l l e d W i n d o w ( p a r e n t ,   - 1 ,   p o s ,   s i z e )   
 {   
 l o g o   =   b ;   
 }   
 
 {   
 }   
 v o i d   W X U N U S E D ( e v e n t ) )   
 {   
 w x P a i n t D C   d c ( t h i s ) ;   
 w x M e m o r y D C   m e m D C ;   
 m e m D C . S e l e c t O b j e c t ( *   l o g o ) ;   
 d c . B l i t ( 5 ,   2 5 ,   l o g o - > G e t W i d t h ( ) ,   l o g o - > G e t H e i g h t ( ) ,   &   m e m D C ,   0 ,   0 ,   w x C O P Y ,   T R U E ) ;   
 m e m D C . S e l e c t O b j e c t ( w x N u l l B i t m a p ) ;   
 }   
 